package com.dataseek.iot.mysql.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author cc
 * @since 2021-09-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "设备")
public class Device implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(value = "device_inner_id", type = IdType.AUTO)
    private Long deviceInnerId;

    /**
     * 设备编码
     */
    @ApiModelProperty(value = "设备编码",required = true)
    private String deviceCode;



    /**
     * 设备名称
     */
    @ApiModelProperty(value = "设备名称",required = true)
    private String deviceName;

    /**
     * 产品ID
     */
    @ApiModelProperty(value = "产品ID",required = true)
    private String productId;

    /**
     * 产品编码
     */
    @ApiModelProperty(value = "产品编码",required = true)
    private String productCode;

    /**
     * 线路ID
     */
    @ApiModelProperty(value = "线路ID", required = true)
    private String lineCode;

    /**
     * 地址
     */
    @ApiModelProperty(value = "地址", required = true)
    private String address;

    /**
     * 设备坐标
     */
    @ApiModelProperty(value = "设备坐标", required = true)
    private String location;

    /**
     * 设备状态
     */
    @ApiModelProperty(value = "设备状态")
    private String state;

    /**
     * 创建时间
     */
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private String createTime;

    /**
     * 更新时间
     */
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private String updateTime;

    /**
     * 创建人
     */
    private String creator;

    /**
     * 是否启用
     */
    private byte used;

    /**
     * 说明
     */
    private String comment;


}
